executesqlinterpolatedasync stored procedure

57

executesqlinterpolatedasync stored procedure -

var res = await _context
           .Restaurants
           .FromSqlInterpolated($"UpdateRestaurantInformation {restaurant.RestaurantId}, {restaurant.RestaurantName}, {restaurant.Location.LocationId}").ToListAsync();

return res.SingleOrDefault();

Comments

Submit
0 Comments